﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ModifyPass.aspx.cs" Inherits="BasicInfo_ModifyPass" %>

<!DOCTYPE html> 
<html> 
	<head runat="server"> 
        <meta charset="utf-8">
	    <meta name="viewport" content="width=device-width, initial-scale=1">
	    <title>运维合同预警</title> 
        <link href="Content/jquery.mobile-1.2.0.min.css" rel="stylesheet" type="text/css" />
        <script src="Scripts/jquery-1.6.4.min.js" type="text/javascript"></script>
        <script src="Scripts/jquery.mobile-1.2.0.min.js" type="text/javascript"></script>
        <script src="Scripts/jquery.validate.min.js" type="text/javascript"></script>
        <link href="Content/Default.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript">
            $.mobile.ajaxEnabled = false;
            $(function () {
                $("#form1").validate({
                    rules: {
                        oldPassword: "required",
                        NewPassword: {
                            required: true,
                            minlength:6
                        },
                        NewPassword2: {
                            required: true,
                            equalTo: '#NewPassword'
                        }
                    },
                    messages: {
                        oldPassword: "请输入旧密码",
                        NewPassword: {
                            required:"请输入新密码",
                            minlength:"请确认密码不少于6个字符"
                        },
                        NewPassword2: {
                            required:"请再次输入新密码",
                            equalTo:"两次输入的密码不一致"
                        }
                    }
                });
            });
        </script>
    </head> 
<body>     
    <!-- start page -->
    <div data-role="page">

	<!-- start header -->
	<div data-role="header" data-theme="c" data-position="inline" data-backbtn="false">
        <a href="desktop.aspx" data-icon="home">桌面</a>
		<h1>运维合同预警</h1>
        <a href="default.aspx" data-icon="forward">退出</a>
	</div>
	<!-- end header -->

	<!-- start content -->
	<div data-role="content">	
        <form id="form1" runat="server" action="ModifyPass.aspx" method="post">
        <ul data-role="listview" data-inset="true">
            <asp:Literal runat="server" ID="msg"></asp:Literal>
            <li data-role="fieldcontain">
	        	<label for="oldPassword">旧密码:</label>	        
                <asp:TextBox runat="server" ID="oldPassword" TextMode="Password" MaxLength="20"></asp:TextBox>
			</li>
            <li data-role="fieldcontain">
	        	<label for="NewPassword">新密码:</label>
                <asp:TextBox runat="server" TextMode="Password" ID="NewPassword" MaxLength="20"></asp:TextBox>
			</li>
            <li data-role="fieldcontain">
	        	<label for="NewPassword2">请再次输入:</label>
                <asp:TextBox runat="server" TextMode="Password" ID="NewPassword2" MaxLength="20"></asp:TextBox>
			</li>
            <li class="ui-body ui-body-b">
				<fieldset class="ui-grid-a">
						<div class="ui-block-a"><button type="reset" data-theme="c">重置</button></div>
						<div class="ui-block-b">
                            <asp:Button runat="server" Text="提交" ID="submit" data-theme="c"
                                onclick="submit_Click"/>
                        </div>
			    </fieldset>
			</li>
        </ul>
    </form> 
	</div>
	<!-- end content -->
	
	<!-- start footer -->
	<div data-role="footer" data-theme="c" data-position="fixed">
		<h4>Copyright © 2013 朴极,Inc</h4>
	</div>
	<!-- end footer -->
	
    </div>
    <!-- end page -->
    
</body>
</html>
